package com.vencent.spring.handle;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

import com.vencent.spring.exception.UpdateErrorException;

/**
 * 自带@Component
 * @author 1d
 *
 */
@ControllerAdvice
public class HandleException {
	@ExceptionHandler(value=UpdateErrorException.class)
	public String updateException(){
		return "error";
	}
}
